/**
 * 
 */
package de.idgard.json.transport;

import de.idgard.webapp.shared.dto.transport.DataRequest;

/**
 * 
 * @author <a href="mailto:vesko.georgiev@uniscon.com">Vesko Georgiev</a>
 */
public interface ServiceTransport {

	public <Req, Res> void post(String url, DataRequest<Req> requestPayload,
			Receiver<Res> receiver, PayloadParser<Res> parser);

	public <Req, Res> void post(String url, DataRequest<Req> requestPayload,
			Receiver<Res> receiver, PayloadParser<Res> parser,
			CacheHandler cacheHandler);

}
